-- GENERATED SPELL FOR [Archbishop Benedictus] --


function spell0_1284(pUnit, Event) --@Holy Nova,Self--
pUnit:FullCastSpellOnTarget(20694,pUnit)
pUnit:RegisterEvent('Sorts_1284', 690, 1)
end

function spell1_1284(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(20695,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1284', 1500, 1)
end

function spell2_1284(pUnit, Event) --@Power Word: Fortitude,n/a--
pUnit:FullCastSpellOnTarget(2791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1284', 621, 1)
end

function spell3_1284(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(20697,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1284', 30307, 1)
end

function Sorts_1284(pUnit, Event)
local choix_sorts_1284 = math.random(0, 3)
if choix_sorts_1284 == 0 then
pUnit:RegisterEvent('spell0_1284', 1, 1)
end
if choix_sorts_1284 == 1 then
pUnit:RegisterEvent('spell1_1284', 1, 1)
end
if choix_sorts_1284 == 2 then
pUnit:RegisterEvent('spell2_1284', 1, 1)
end
if choix_sorts_1284 == 3 then
pUnit:RegisterEvent('spell3_1284', 1, 1)
end
end

function mob1284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1284', math.random(1500, 3000), 1)
end

function mob1284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1284, 1, 'mob1284_Action')
RegisterUnitEvent(1284, 2, 'mob1284_Leave')
RegisterUnitEvent(1284, 3, 'mob1284_Kill')
RegisterUnitEvent(1284, 4, 'mob1284_Die')
